/*
 *  Copyright 2025 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
/**
 * Request to render a notification template with mock data for preview.
 */
export interface NotificationTemplateRenderRequest {
    /**
     * Optional. Specific event type to test (e.g., 'entityUpdated'). When omitted, generates a
     * neutral ChangeEvent with no event-specific fields.
     */
    eventType?: EventType;
    /**
     * Entity type to mock (e.g., 'table', 'dashboard', 'task'). Falls back to generic fixture
     * if not found.
     */
    resource: string;
    /**
     * Handlebars template content for rendering notifications
     */
    templateBody: string;
    /**
     * Handlebars template for notification subject line
     */
    templateSubject: string;
}

/**
 * Optional. Specific event type to test (e.g., 'entityUpdated'). When omitted, generates a
 * neutral ChangeEvent with no event-specific fields.
 *
 * Type of event.
 */
export enum EventType {
    EntityCreated = "entityCreated",
    EntityDeleted = "entityDeleted",
    EntityFieldsChanged = "entityFieldsChanged",
    EntityNoChange = "entityNoChange",
    EntityRestored = "entityRestored",
    EntitySoftDeleted = "entitySoftDeleted",
    EntityUpdated = "entityUpdated",
    LogicalTestCaseAdded = "logicalTestCaseAdded",
    PostCreated = "postCreated",
    PostUpdated = "postUpdated",
    SuggestionAccepted = "suggestionAccepted",
    SuggestionCreated = "suggestionCreated",
    SuggestionDeleted = "suggestionDeleted",
    SuggestionRejected = "suggestionRejected",
    SuggestionUpdated = "suggestionUpdated",
    TaskClosed = "taskClosed",
    TaskResolved = "taskResolved",
    ThreadCreated = "threadCreated",
    ThreadUpdated = "threadUpdated",
}
